<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        @media screen and (max-width: 500px) {
            body {
                background-color: red;
            }
        }
        @media screen and (min-width: 800px) {
            body {
                background-color: green;
            }
        }
        @media screen and (min-width: 1024px) {
            body {
                background-color: blue;
            }
        }
    </style>
</head>
<body></body>
</html>
